*{
    box-sizing: border-box;
}
body{
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content{
    width: 1200px;
    height: 300px;
    position: relative;
    background-color: #393939;

    .info{
        width: 100%;
        color: #fff;
        display: flex;

        .info-left{
            flex-grow: 1;
            margin-left: 20px;
            margin-top: 80px;
        }   

        .info-right{
            flex-grow: 1;
            margin-left: 20px;
            margin-top: 80px;
        }
    }

    >input{
        display: none;
    }

    .register{
        color: #fff;
        display: inline-block;
        border: 3px solid #656565;
        width: 100px;
        height: 30px;
        margin-left: 20px;
        text-align: center;
        transition: all 1s;
    }
    .login{
        color: #fff;
        display: inline-block;
        border: 3px solid #656565;
        width: 100px;
        height: 30px;
        margin-left: 495px;
        text-align: center;
        transition: all 1s;
    }
    #register:checked+.register{
        border: 3px solid #cccccc;
        background-color: #cccccc;
        color: gray;
    }

    #login:checked+.login{
        border: 3px solid #cccccc;
        background-color: #cccccc;
        color: gray;
    }
    #register:checked~.showbox{
        transform: translateX(3px);
    }

    #login:checked~.showbox{
        transform: translateX(602px);
    }
    #register:checked~.showbox .register-form{
        transform: translateX(0px);
    }

    #login:checked~.showbox .login-form{
        transform: translateX(0px);
    }

    .showbox{
        position: absolute;
        top: -100px;
        left: 52px;
        width: 500px;
        height: 500px;
        background-color: #fff;
        box-shadow: 0px 0px 20px 1px #b9b9b9;
        transition: all 1s;
        transform: translateX(100px);
        overflow: hidden;

        form{
            position: absolute;
            margin: 50px 30px;
            width: 440px;
            height: 400px;
            transition: all 1s;

            h1{
                margin-top: 92px;
                color: red;
            }
            
            >p{
                display: flex;
                align-items: center;
                color: #bababa;
                font-size: 25px;

                >input{
                    margin-left: 10px;
                    width: 80%;
                    height: 30px;
                    border: 2px solid #bababa;
                }
            }

            .btn{
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;

                p{
                    font-size: 16px;
                    color: #bababa;
                }
            
                >input{
                    width: 100px;
                    height: 40px;
                    font-size: 20px;
                    color: #fff;
                    background-color: #ec6f6d;
                    border: 2px solid #ecaba5;
                    margin-right: 20px;
                }
            }
        }

        .register-form{
            transform: translateX(480px);
        }

        .login-form{
            transform: translateX(-500px);
        }
    }
}
